package com.yzion.baselib.http.cookie

import okhttp3.Cookie
import okhttp3.HttpUrl

/**
 * Created by wanglei on 2017/9/3.
 */
interface CookieStore {
    fun add(uri: HttpUrl, cookie: List<Cookie>)
    operator fun get(uri: HttpUrl): List<Cookie>
    fun getCookies(): List<Cookie>
    fun remove(uri: HttpUrl, cookie: Cookie): Boolean
    fun removeAll(): Boolean
}